﻿using chihuopig.Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace chihuopig.IService
{
    public  interface IRoleService:IBaseService<Role>
    {
        Task<List<Role>> GetTable();
        /// <summary>
        /// 获取某一个的管理员的角色Id
        /// </summary>
        /// <param name="AdminId"></param>
        /// <returns></returns>
        Task<List<long>> GetAdminRoleId(long AdminId);

        /// <summary>
        /// 分页
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="PageSize"></param>
        /// <param name="Totalout"></param>
        /// <returns></returns>
        Task<List<Role>> GetPage(int pageIndex, int PageSize);
    }
}
